﻿using System.Data;
using LibDataLayer;

namespace LibBusinessLayer
{
    public class BllUsers
    {
        #region[Get-Data]
        public DataTable GetUser(string keywrods)
        {
            return DalUsers.GetUser(keywrods);
        }
        public DataTable GetUserEdit(string UserId)
        {
            return DalUsers.GetUserEdit(UserId);
        } 
        public static bool GetUserLogin(DTOUsers obj)
        {
            return DalUsers.GetUserLogin(obj);
        }
        public DataTable GetUserLoginAll(string UserName, string Passwords)
        {
            return DalUsers.GetUserLoginAll(UserName, Passwords);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool Insert(DTOUsers obj)
        {
            return DalUsers.Insert(obj);
        }
        public static bool ChangePass(DTOUsers obj)
        {
            return DalUsers.ChangePass(obj);
        }
        public static bool ChangeMail(DTOUsers obj)
        {
            return DalUsers.ChangeMail(obj);
        }
        public static bool ChangeQuestion(DTOUsers obj)
        {
            return DalUsers.ChangeQuestion(obj);
        }
        public static bool Lock(DTOUsers obj)
        {
            return DalUsers.Lock(obj);
        }
        public static bool Delete(DTOUsers obj)
        {
            return DalUsers.Delete(obj);
        }
        #endregion
    }
}